-
Notifications
You must be signed in to change notification settings - Fork 24.7k
PerformanceEntryReporter::getMarkTime to return optional DOMHighResTimeStamp #51389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This pull request was exported from Phabricator. Differential Revision: D74837812 |
This pull request was exported from Phabricator. Differential Revision: D74837812 |
…meStamp (facebook#51389) Summary: Pull Request resolved: facebook#51389 # Changelog: [Internal] This is the pre-requisite for the diff on top, which migrates performance-related classes to start using `HighResTimeStamp`. Differential Revision: D74837812
Summary: # Changelog: [Internal] This is the pre-requisite for the diff on top, which migrates performance-related classes to start using `HighResTimeStamp`. We should be throwing `SyntaxError` if the specified mark name is not buffered. Like Chromium does: {F1978032319} In this diff: - `PerformanceEntryReporter::getMarkTime` is now public and called by `NativePerformance`. - `NativePerformance` is responsible for validating that marks are present in the buffer, if their names are specified in `.measure()` call. - Mark names take precedence over `startTime` and `endTime` values, so if they are specified and not available, then we will throw Error over `jsi` that will be catched on JavaScript side in `Performance.js`. Differential Revision: D74837812
This pull request was exported from Phabricator. Differential Revision: D74837812 |
Summary: Pull Request resolved: facebook#51389 # Changelog: [Internal] This is the pre-requisite for the diff on top, which migrates performance-related classes to start using `HighResTimeStamp`. We should be throwing `SyntaxError` if the specified mark name is not buffered. Like Chromium does: {F1978032319} In this diff: - `PerformanceEntryReporter::getMarkTime` is now public and called by `NativePerformance`. - `NativePerformance` is responsible for validating that marks are present in the buffer, if their names are specified in `.measure()` call. - Mark names take precedence over `startTime` and `endTime` values, so if they are specified and not available, then we will throw Error over `jsi` that will be catched on JavaScript side in `Performance.js`. Differential Revision: D74837812
Summary: # Changelog: [Internal] This is the pre-requisite for the diff on top, which migrates performance-related classes to start using `HighResTimeStamp`. We should be throwing `SyntaxError` if the specified mark name is not buffered. Like Chromium does: {F1978032319} In this diff: - `PerformanceEntryReporter::getMarkTime` is now public, ca be called by `NativePerformance` and returns `std::optional`. - `NativePerformance` is responsible for validating that marks are present in the buffer, if their names are specified in `.measure()` call. - Mark names take precedence over `startTime` and `endTime` values, so if they are specified and not available, then we will throw Error over `jsi` that will be catched on JavaScript side in `Performance.js`. Reviewed By: rubennorte Differential Revision: D74837812
This pull request was exported from Phabricator. Differential Revision: D74837812 |
This pull request has been merged in ce43342. |
This pull request was successfully merged by @hoxyq in ce43342 When will my fix make it into a release? | How to file a pick request? |
Summary:
Changelog: [Internal]
This is the pre-requisite for the diff on top, which migrates performance-related classes to start using
HighResTimeStamp
.Differential Revision: D74837812